<?php

class WrongParametersException extends Exception {
	
	function __construct($message, $code=null) {
		if ($code==null)
			parent::__construct($message,0);
		else
			parent::__construct($message,$code);
	}
	
	function toXML($mode) {
		return "
			<EXCEPTION>
				<TYPE>wrong parameter exception</TYPE>
				<MESSAGE>".$this->getMessage()."</MESSAGE>
			</EXCEPTION>
		";
		
	}
	
	function getElementStartTag() {
		return "<EXCEPTION>";
		
	}
	
	function getElementEndTag() {
		return "</EXCEPTION>";
		
	}
	
	
	
	
}